﻿using System.Text.Json.Serialization;
using MediatR;
using WeatherHistory.Shared.Validation;

namespace WeatherHistory.Api.CommandsQueries.Commands.Forecasts.Update;

public class UpdateForecastsCommandRequest : IRequest<UpdateForecastsCommandResponse>
{
    [JsonIgnore]
    public long ForecastId { get; set; }

    [WeatherCondition(false)]
    public string WeatherCondition { get; set; } = null!;

    public float Temperature { get; set; }
    public DateTime DateTime { get; set; }
}